package com.szzg10.pattern.factory;

public abstract class FactoryMethod {

	public void execute() {
		System.out.println("Factory Method: ");
		
		Pizza pizza = getObject();
		pizza.sayName();
	}
	
	public abstract Pizza getObject();
}
